$OpenBSD: patch-modules_gui_qt4_dialogs_messages_hpp,v 1.1 2017/05/22 10:22:25 espie Exp $
Use qt4 atomics there, they're portable (taken from FreeBSD)

Index: modules/gui/qt4/dialogs/messages.hpp
--- modules/gui/qt4/dialogs/messages.hpp.orig
+++ modules/gui/qt4/dialogs/messages.hpp
@@ -30,6 +30,7 @@
 #include <stdarg.h>
 #include <vlc_atomic.h>
 #include <QMutex>
+#include <QAtomicInt>
 
 class QTabWidget;
 class QPushButton;
@@ -55,7 +56,7 @@ class MessagesDialog : public QVLCFrame, public Single
     void sinkMessage( const MsgEvent * );
     bool matchFilter( const QString& );
 
-    atomic_uint verbosity;
+    QAtomicInt verbosity;
     static void MsgCallback( void *, int, const vlc_log_t *, const char *,
                              va_list );
 
